#pragma once
#include <Windows.h>

struct XY
{
	int X;
	int Y;
	XY():X(0),Y(0){}
	XY(COORD P):X(P.X),Y(P.Y){}
	XY(int x,int y):X(x),Y(y){}
	~XY(){X = 0;Y = 0;}
	void operator=(XY rhs)
	{
		this->X = rhs.X;
		this->Y = rhs.Y;
	}
	void operator=(XY * rhs)
	{
		this->X = rhs->X;
		this->Y = rhs->Y;
	}
	bool operator==(XY rhs)
	{
		if(this->X == rhs.X && this->Y == rhs.Y)
			return true;
		return false;			
	}
	bool operator==(XY * rhs)
	{
		if(this->X == rhs->X && this->Y == rhs->Y)
			return true;
		return false;
	}
	bool operator!=(XY rhs)
	{
		if(this->X != rhs.X || this->Y == rhs.Y)
			return true;
		return false;
	}
	bool operator!=(XY * rhs)
	{
		if(this->X != rhs->X && this->Y != rhs->Y)
			return true;
		return false;
	}
};